package com.cskaoyan.model.admin.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: StatOrderRespVO
 * @Author: WangEnzhao
 * @Description: 统计订单返回的数据
 * @CreateTime: 2021/11/14:23:00
 */
@Data
public class StatOrderRespVO {

    /**
     * columns : ["day","orders","customers","amount","pcr"]
     * rows : [{"amount":1247,"orders":2,"customers":1,"day":"2021-11-29","pcr":1247}]
     */
    private List<String> columns;
    private List<RowsEntityOfStatOrderRespVO> rows;

    /**
     * @Author: WangEnzhao
     * @Description: 给columns初始化，后面需要更改直接调用columns的set方法即可
     * @CreateTime:
     * @Param:
     * @return:
     **/
    {
        List<String> strings = new ArrayList<>();
        strings.add("day");
        strings.add("orders");
        strings.add("customers");
        strings.add("amount");
        strings.add("pcr");
        columns = strings;
    }

}
